<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html><!DOCTYPE html>
<html lang="en" xmlns=http://www.w3.org/1999/xhtml xmlns:bd=http://www.baidu.com/2010/xbdml>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8" />
    <title></title>
    <meta name="description" content="overview &amp; stats" />
    <meta name=renderer  content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
    <!-- bootstrap & fontawesome -->
    <link rel="stylesheet" href="/assets/js/ace1.4/assets/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/assets/js/ace1.4/assets/font-awesome/4.5.0/css/font-awesome.min.css" />
    <!-- text fonts -->
    <link rel="stylesheet" href="/assets/js/ace1.4/assets/css/fonts.googleapis.com.css" />
    <!-- ace styles -->
    <link rel="stylesheet" href="/assets/js/ace1.4/assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />
    <!-- ace settings handler -->
    <script src="/assets/js/ace1.4/assets/js/ace-extra.min.js"></script>
    <!--[if lte IE 9]>
    <link rel="stylesheet" href="/assets/js/ace1.4/assets/css/ace-part2.min.css" class="ace-main-stylesheet" />
    <![endif]-->
    <link rel="stylesheet" href="/assets/js/ace1.4/assets/css/ace-skins.min.css" />
    <link rel="stylesheet" href="/assets/js/ace1.4/assets/css/ace-rtl.min.css" />
    <!--[if lte IE 9]>
    <link rel="stylesheet" href="/assets/js/ace1.4/assets/css/ace-ie.min.css" />
    <![endif]-->
    <!-- inline styles related to this page -->
    <!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->
    <!--[if lte IE 8]>
    <script src="/assets/js/ace1.4/assets/js/html5shiv.min.js"></script>
    <script src="/assets/js/ace1.4/assets/js/respond.min.js"></script>
    <![endif]-->
    <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
    <!--layui-css-->
    <link rel="stylesheet" href="/assets/js/ace1.4/assets/css/layui.css">
    <!--js-->
    <script src="/assets/js/ace1.4/assets/js/jquery.min.js"></script>
    <script src="/assets/js/ace1.4/assets/js/layui.js"></script>
</head>
<body style="background-color: #fff;">
<div class="page-content">
    <div class="page-header">
        <h1>您当前操作
            <small>
                <i class="ace-icon fa fa-angle-double-right"></i>列表
            </small>
        </h1>
    </div>
    <div class="row">
        <div class="col-xs-12">
            <div>
                <table class="table table-striped table-bordered table-hover">
                    <thead>
                    <tr>
                        <th class="hidden-xs">姓名</th>
                        <th class="hidden-xs">证件类型</th>
                        <th class="hidden-xs">证件号码</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="res" id="vo"}
                    <tr ondblclick="rowCust(this)">
                        <td class="hidden-xs">{$vo['learned_name']}</td>
                        <td class="hidden-xs">{eq name="vo.learned_kind" value="1"}统一社会信用代码{else}身份证{/eq}</td>
                        <td class="hidden-xs">{$vo['learned_num']}</td>
                        <td class="hidden-xs" hidden>{$vo['learned_phone']}</td>
                        <td class="hidden-xs" hidden>{$vo['learned_email']}</td>
                        <td class="hidden-xs" hidden>{$vo['learned_address']}</td>
                        <td class="hidden-xs" hidden>{$vo['learned_kind']}</td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>
            </div>

        </div>
    </div>
</div>

<script type="text/javascript">

    function rowCust(row){
        var learned_name = $(row).children().eq(0).text();
//          var ginseng_kind = $(row).children().eq(1).text();
        var learned_num = $(row).children().eq(2).text();
        var learned_phone = $(row).children().eq(3).text();
        var learned_email =  $(row).children().eq(4).text();
        var learned_address =  $(row).children().eq(5).text();
        var learned_kind = $(row).children().eq(6).text();

        $("#c-learned_name",window.parent.document).val(learned_name);
        $("#c-learned_kind",window.parent.document).val(learned_kind);
        $("#c-learned_num",window.parent.document).val(learned_num);
        $("#c-learned_phone",window.parent.document).val(learned_phone);
        $("#c-learned_email",window.parent.document).val(learned_email);
        $("#c-learned_address",window.parent.document).val(learned_address);


        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
        parent.layer.close(index); //执行关闭
    }
</script>

</body>
</html>